package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by DF on 9/6/2016.
 */
public class Lsh活动推送ModelPK implements Serializable {
    private int 活动编号;
    private String 推送类型;

    @Column(name = "活动编号")
    @Id
    public int get活动编号() {
        return 活动编号;
    }

    public void set活动编号(int 活动编号) {
        this.活动编号 = 活动编号;
    }

    @Column(name = "推送类型")
    @Id
    public String get推送类型() {
        return 推送类型;
    }

    public void set推送类型(String 推送类型) {
        this.推送类型 = 推送类型;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh活动推送ModelPK that = (Lsh活动推送ModelPK) o;

        if (活动编号 != that.活动编号) return false;
        if (推送类型 != null ? !推送类型.equals(that.推送类型) : that.推送类型 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 活动编号;
        result = 31 * result + (推送类型 != null ? 推送类型.hashCode() : 0);
        return result;
    }
}
